import type { RouteRecordRaw } from "vue-router";

export default {
  path: "/",
  component: () => import("@/layouts/front/index.vue"),
  meta: { auth: true },
  children: [
    {
      name: "home",
      path: "",
      component: () => import("@/views/front/Home.vue"),
    },
    {
      name: "jingqing",
      path: "jingqing",
      redirect:"/front/jingqing/home",
      component: () => import("@/views/front/jingqing/Jingqing.vue"),
      meta: { menu: { title: "案件统计" } },
      children: [
         {
          name: "jingqing.home",
          path: "home",
          component: () => import("@/views/front/jingqing/Home.vue"),
          meta: { menu: { title: "案件概览" } },
        },
        {
          name: "jingqing.indicators",
          path: "indicators",
          component: () => import("@/views/front/jingqing/Indicators.vue"),
          meta: { menu: { title: "指标查询" } },
        },
        {
          name: "jingqing.receptioninfo",
          path: "reception",
          component: () => import("@/views/front/jingqing/ReceptionInfo.vue"),
          meta: { menu: { title: "接警信息查询" } },
        },
        {
          name: "jingqing.handleinfo",
          path: "handleinfo",
          component: () => import("@/views/front/jingqing/HandleInfo.vue"),
          meta: { menu: { title: "处警信息查询" } },
        },
      ],
    },
    {
      name: "anqing",
      path: "anqing",
      component: () => import("@/views/front/anqing/Anqing.vue"),
      meta: { menu: { title: "人员统计" } },
      children: [
        {
          name: "anqing.indicators",
          path: "indicators",
          component: () => import("@/views/front/anqing/Indicators.vue"),
          meta: { menu: { title: "人员概览" } },
        },
        {
          name: "anqing.caseinfo",
          path: "caseinfo",
          component: () => import("@/views/front/anqing/CaseInfo.vue"),
          meta: { menu: { title: "案件信息查询" } },
        },
      ],
    },
  ],
} as RouteRecordRaw;
